<?php
class HomeController extends AppController {
    public $name = 'home';
    public $helpers = array('Html', 'Form');
    public $components = array('Session');
	
	public $uses = array('Slider');
 
	public function beforeFilter() {
        parent::beforeFilter();
        //$this->Auth->allow('add', 'logout');
		//debug($this->Auth->user('id'));
    }
 
	public function index() {
       $this->redirect(array('action' => 'home'));
    }
	public function view($id = null) {
        //$this->Curso->id = $id;
        //$this->set('curso', $this->Curso->read());
    }
	public function home() {
		$this->set('sliders', $this->Slider->find('all'));
		
    }
}